<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
</block>

<block name="main">
<div class="pd-20">
	<form action="{:u('Districtadmin/edit_post')}" method="post" class="form form-horizontal validator_form close-dialog" id="form-article-add">
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>校区名称：</label>
				<div class="formControls col-6">
				  	<input type="text" class="input-text" value="{$info.title}" placeholder="" name="title"  data-rule="校区名称:required;">
				</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>校区电话：</label>
				<div class="formControls col-2">
				  	<input type="text" class="input-text" value="{$info.tel}" placeholder="" name="tel"  data-rule="校区电话:required;">
				</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>校区地址：</label>
				<div class="formControls col-6">
				  	<input type="text" class="input-text" value="{$info.address}" placeholder="" name="address"  data-rule="校区地址:required;">
				</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">排序值：</label>
			<div class="formControls col-2">
				<input type="text" class="input-text" value="{$info.listorder|default=0}" placeholder="" id="" name="listorder">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>校区介绍：</label>
			<div class="formControls col-8">
			  	<textarea name="content" style="width:800px;height:450px;visibility:hidden;">{$info.content}</textarea>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">提示信息：<br/><span class="f-12">(订单支付前提示信息)</span></label>
			<div class="formControls col-8">
			  	<textarea name="msg" style="width:800px;height:450px;visibility:hidden;">{$info.msg}</textarea>
			</div>
		</div>
	  	<div class="row cl">
	    	<div class="col-9 col-offset-2">
	    		<input type="hidden" name="id" value="{$info['id']}">
	      		<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
	    	</div>
	  	</div>
	</form>
</div>
</block>

<block name="script">
<css href="/Public/Sea/modules/kindeditor/src/default.css,/Public/Sea/modules/kindeditor/css/upload.css" />
<js href="/Public/Sea/modules/kindeditor/src/kindeditor-min.js,/Public/Sea/modules/kindeditor/src/lang/zh_CN.min.js" />
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$('.mini-time').datepicker();
	
	var config = {appid:'{$app['app_id']}',appkey:'{$app['app_key']}'};
	var uploadurl = '/material/image/upload';
	var editor1 = KindEditor.create('textarea[name="content"]',{
		uploadJson : uploadurl,
		allowFileManager : true,
		fileManagerJson : config.fileManagerJson,
		afterBlur: function(){this.sync();}
	});
	
	var editor2 = KindEditor.create('textarea[name="msg"]',{
		uploadJson : uploadurl,
		allowFileManager : true,
		fileManagerJson : config.fileManagerJson,
		afterBlur: function(){this.sync();}
	});

});

</script>
</block>